package com.mangatta.cloud;

import java.util.ArrayList;
import java.util.List;

public enum Statistic {
    AVERAGE("Average"), MINIMUM("Minimum"), MAXIMUM("Maximum"), SUM("Sum"), SAMPLE_COUNT("SampleCount");

    private String name;

    Statistic(String name) {
        this.name = name;
    }

    public static Statistic getDefault(){
    	return MAXIMUM;
    }
    
    public String getName() {
        return name;
    }

    public static List<String> getAllNames() {
        List<String> names = new ArrayList<String>();
        for (Statistic statistic : values()) {
            names.add(statistic.getName());
        }
        return names;
    }
}
